<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/index/css/common.css?v=2">
    <link rel="stylesheet" href="/index/css/explain.css">
    <link rel="stylesheet" href="/index/css/aui.css">
    <title>{$row.title}</title>
</head>
<body>
<div class="tabsBox">
    <div class="topTab">
        <div class="tabLeft">
            <img src="/index/assets/left.png" >
        </div>
        <div class="tabCenters">{$row.title}</div>
        <!-- <div class="tabRight">收益说明</div> -->
    </div>
</div>



<div>
    {$row.content|raw}
</div>
{if $row.type==1}

<div class="foot-btns">

    <a href="{:url('mine/level')}">成为股东立即赚钱</a>
    <a href="{:url('mine/invite')}">邀请好友获得收益</a>
</div>
{/if}

<div style='height:60px'></div>
<div class="dateBox cleardrift">
    <img src="/index/assets/close.png" class="close" >
    <div class="dataTitle">申请资料</div>
    <div class="dateList">
        <div class="dateName">姓名</div>
        <input type="text" id="real_name">
    </div>
    <div class="dateList">
        <div class="dateName">电话</div>
        <input type="text" id="phone">
    </div>

    <div class="dateList">
        <div class="dateName">微信</div>
        <input type="text" id="wechat">
    </div>
    <div class="tijiao">提交</div>
</div>
</body>
<script type="text/javascript" src="/index/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="/index/js/common.js"></script>
<script type="text/javascript" src="/index/js/aui-toast.js"></script>
<!--<script type="text/javascript" src="/index/js/ydui.citys.js"></script>-->
<script>
    var toast = new auiToast();

    $('.tijiao').click(function(){
        var real_name = $('#real_name').val();
        var phone = $('#phone').val();
        var wechat = $('#wechat').val();

        if(!real_name){
            toastFail('请输入姓名');
            return;
        }

//        if(!phone){
//            toastFail('请输入电话');
//            return;
//        }

        if(!checkPhone(phone)){
            toastFail('请输入正确的手机号码');
            return;
        }

        var data = {
            real_name:real_name,
            phone:phone,
            wechat:wechat
        }

        $.post('{:url("applyLecturer")}',data,function(res){

            if(res.code==1){
                toastSuccess('申请成功','{:url("mine/index")}')
            }else{
                toastFail('申请失败');
            }
        },'json')

    })

    $('.reply').click(function(){
        $('.dateBox').fadeIn(500)
        $('.shenqing').fadeOut(500)
    })
    $('.close').click(function(){
        $('.dateBox').fadeOut(500)
        $('.shenqing').fadeIn(500)
    })

</script>
</html>